#!/bin/sh

a=$(lsof -i :7000 | grep -v grep |grep -v PID | awk '{print $2}')
if [ $a ];then

echo '\r\n'
echo '\033[31m 【程序运行中!】 \033[0m'
echo '\r\n'
	else
nohup go run index.go &  
echo '\r\n'
echo '\033[31m 【程序已启动!】\033[0m'
echo '\r\n'
fi
